XX			= g++
LIBS    	= -L.
INCLUDES    = -I.
SOURCE      = $(wildcard *.cpp)
OBJS        = $(patsubst %.cpp, %.o, $(SOURCE))
TARGET      = ./result

all: $(TARGET)

$(TARGET): $(OBJS)
	$(XX) $(OBJS) -o $(TARGET) $(LIBS)

%.o: %.cpp Makefile
	$(XX) $(INCLUDES) -c $< -o $@

clean:
	rm -rf *.o .dep.* $(TARGET)
